<?php
define('STIME',microtime(true));
require_once './includes/base.php';
$base = new Base();
$base->_init_all();
global $_G;
$module = isset($_REQUEST['m']) ? trim($_REQUEST['m']) : (!empty($_G['settings']['defmod'])?$_G['settings']['defmod']:'default');
$function= isset($_REQUEST['f']) ? trim($_REQUEST['f']) : (!empty($_G['settings']['defidx'])?$_G['settings']['defidx']:'index');
$alia=getGP('alias');
if($alia && $alia !='index.php'){
	$aliass=$_G['cache']->get('alias');
	if(isset($aliass[$alia])){
		list($_REQUEST['id'],$module)=explode('.',$aliass[$alia]);
	}else{
		$module='';
	}
	$aliass=array();unset($aliass,$alia);
	
}
if(module_exists($module)) {
	m($module);
	$classname = ucfirst($module).'Module';
	$m = new $classname;
	$m->$function();
}else{
	error(Lang::get('page_not_exists'));
}
?>